<template>
  <div>
    爷爷组件

    <p :style="{ color: color }">爷爷组件</p>
    <button @click="color = '#c82519'">点击变红色</button>
  </div>
  <Son />
</template>

<script setup>
import { provide, ref } from 'vue'
import Son from './Son.vue'

const money = ref(1000)
const color = ref('skyblue')
provide('money', money)
provide('color', color)
</script>
<style scoped></style>
